
package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.ServerBill;
import com.sasis.dao.ServerBillDao;
import com.sasis.service.ServerBillManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class ServerBillManagerImpl extends BaseManager implements ServerBillManager {
    private ServerBillDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setServerBillDao(ServerBillDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.ServerBillManager#getServerBills(com.sasis.model.ServerBill)
     */
    public List getServerBills(final ServerBill serverBill) {
        return dao.getServerBills(serverBill);
    }

    /**
     * @see com.sasis.service.ServerBillManager#getServerBill(String id)
     */
    public ServerBill getServerBill(final String id) {
        return dao.getServerBill(new Integer(id));
    }

    /**
     * @see com.sasis.service.ServerBillManager#saveServerBill(ServerBill serverBill)
     */
    public void saveServerBill(ServerBill serverBill) {
        dao.saveServerBill(serverBill);
    }

    /**
     * @see com.sasis.service.ServerBillManager#removeServerBill(String id)
     */
    public void removeServerBill(final String id) {
        dao.removeServerBill(new Integer(id));
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
